<template>
    <div style="height: 400px;width: 380px;border: 1px #ff4400 dashed;margin: 5px;">
        <h3>库尔勒</h3>
        <br/>
        <button v-show="!!name" @click="addWorkAddressHandler">安排上班地点</button>
    </div>
</template>

<script>
    export default {
        name: "kuerle",
        props: ['name', 'post'],
        computed: {
            workAddress: {
                get() {
                    return this.$store.state.workAddress
                },
                set(val) {
                    this.$store.state.workAddress = val
                }
            }
        },
        methods: {
            addWorkAddressHandler() {
                this.workAddress = "西部管道"
            }
        }
    }
</script>

<style scoped>

</style>
